home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / bin / libnet-1.0-config < prev    next >
Text File  |  2005-10-19  |  1KB  |  63 lines

  1. #!/bin/sh
  2. #
  3. #   $Id: libnet-config.in,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  4. #
  5. #   Libnet 1.0 libnet-config compilation script
  6. #   (c) 1998 - 2001  Mike D. Schiffman <mike@infonexus.com>
  7. #
  8. #   Generated automatically from libnet-1.0-config.in by configure.
  9.  
  10. libnet_defines="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN"
  11. libnet_cflags=""
  12. libnet_libs=" -lnet-1.0"
  13.  
  14. usage()
  15. {
  16.         cat <<EOF
  17. Usage: libnet-1.0-config [OPTIONS]
  18. Options:
  19.         [--libs]
  20.         [--cflags]
  21.         [--defines]
  22. EOF
  23.         exit
  24. }
  25.  
  26. while test $# -gt 0; do
  27.     case "$1" in
  28.     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  29.     *) optarg= ;;
  30.     esac 
  31.  
  32.     case $1 in
  33.         --libs)
  34.             echo_libs=yes
  35.             ;;
  36.  
  37.         --cflags)
  38.             echo_cflags=yes
  39.             ;;
  40.  
  41.         --defines)
  42.             echo_defines=yes
  43.             ;;
  44.         *)
  45.             usage 1
  46.         esac
  47.     shift
  48. done
  49.  
  50. if test "$echo_libs" = "yes"; then
  51.     echo $libnet_libs
  52. fi
  53.  
  54. if test "$echo_cflags" = "yes"; then
  55.     echo $libnet_cflags
  56. fi
  57.  
  58. if test "$echo_defines" = "yes"; then
  59.     echo $libnet_defines
  60. fi
  61.  
  62. # EOF
  63.